import { } from 'game/utils';
import { } from 'game/prototypes';
import { } from 'game/constants';
import { UnitManager } from './UnitManager';
import { CreepManager } from './CreepManager';
import { SpawnHander } from './SapwnHander';

const unitManager = new UnitManager();
const creepManager = new CreepManager();
const spawnHander = new SpawnHander();

export function loop() {
    
    unitManager.loop();
    
    spawnHander.spawn = unitManager.myUnit.spawn;
    spawnHander.creepManager = creepManager;
    spawnHander.loop();
    creepManager.unitManager = unitManager;
    creepManager.loop();

}
